package com.xcx.minservice.entity;


import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;



@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("file_system")
@ApiModel(value="FileSyste文件对象", description="文件存储表")
public class FileSystem {

    @ApiModelProperty(name = "id",value = "文件id")
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;
    @ApiModelProperty(name = "filePath",value = "文件保存路径")
    private String filePath;
    @ApiModelProperty(name = "fileName",value = "文件名称")
    private String fileName;
    @ApiModelProperty(name = "fileExt",value = "文件类型")
    private String fileExt;
    @ApiModelProperty(name = "source",value = "文件类型")
    private Integer source;
    @ApiModelProperty(name = "userId",value = "用户id")
    private String userId;


    @ApiModelProperty(value = "逻辑删除 1（true）已删除， 0（false）未删除")
    private Boolean isDeleted;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtModified;

}
